package com.vitabuybuy.tv.dto;

import com.vitabuybuy.tv.utils.LanaugeUtils;

import java.util.List;

/**
 * 作者：SimGa
 * 日期：2021/1/19
 * 时间：17:10
 * 包名：com.vitabuybuy.tv.dto
 */
public class MyCommentDto {

    /**
     * goods : {"image":"http://106.55.47.138/attachment/jpg/4473/1514_17025.jpg","product":{"name":"{\"EN\":\"nikedunk\",\"CN\":\"nikedunk\",\"MA\":\"nikedunk\"}","id":61},"salePrice":100}
     */

    private ItemBean item;
    private int scores;
    private String createTime;
    private int id;
    /**
     * name : 李艺科潮男装卖店
     * id : 12
     */

    private StoreBean store;
    private String content;

    public ItemBean getItem() {
        return item;
    }

    public void setItem(ItemBean item) {
        this.item = item;
    }

    public int getScores() {
        return scores;
    }

    public void setScores(int scores) {
        this.scores = scores;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public StoreBean getStore() {
        return store;
    }

    public void setStore(StoreBean store) {
        this.store = store;
    }

    public String getContent() {
        return LanaugeUtils.returnStrByLocation(content);
    }

    public void setContent(String content) {
        this.content = content;
    }

    public static class ItemBean {
        /**
         * image : http://106.55.47.138/attachment/jpg/4473/1514_17025.jpg
         * product : {"name":"{\"EN\":\"nikedunk\",\"CN\":\"nikedunk\",\"MA\":\"nikedunk\"}","id":61}
         * salePrice : 100.0
         */

        private GoodsBean goods;

        public GoodsBean getGoods() {
            return goods;
        }

        public void setGoods(GoodsBean goods) {
            this.goods = goods;
        }

        public static class GoodsBean {
            private String image;
            /**
             * name : {"EN":"nikedunk","CN":"nikedunk","MA":"nikedunk"}
             * id : 61
             */

            private ProductBean product;
            private double salePrice;

            public String getImage() {
                return image;
            }

            public void setImage(String image) {
                this.image = image;
            }

            public ProductBean getProduct() {
                return product;
            }

            public void setProduct(ProductBean product) {
                this.product = product;
            }

            public double getSalePrice() {
                return salePrice;
            }

            public void setSalePrice(double salePrice) {
                this.salePrice = salePrice;
            }

            public static class ProductBean {
                private String name;
                private int id;

                public String getName() {
                    return LanaugeUtils.returnStrByLocation(name);
                }

                public void setName(String name) {
                    this.name = name;
                }

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }
            }
        }
    }

    public static class StoreBean {
        private String name;
        private int id;

        public String getName() {
            return LanaugeUtils.returnStrByLocation(name);
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }
    }
}
